<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>news</title>
</head>

<body>
    <%=userName%>
    <h2>条件判断</h2>
    <%if(num>24){%>
    大于24
    <%}else{%>
    小于24
    <%}%>
    <ul>
        <%for(let i = 0;i<list.length;i++){%>
    <li><%=list[i]%></li>
    <%}%>
    </ul>
    <%- content%>
</body>

</html>